// 请求远端接口

({ formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {
    return new Promise((resolve, reject) => {
        // 在此编写代码
        var leaveId = formData.leaveId
        var day = formData.day
        // onlineUtils--在线js工具类
        // 获取用户信息
        const userInfo = onlineUtils.getUserInfo()

        // 请求接口(url,method='get',data,headers)
        onlineUtils.request('api/hr/hratdleaveinfo/getTypeSurplus/flow', 'get', { leaveId: leaveId, day: day})
        // 消息提示(message,type='info',duration=3000)
        onlineUtils.toast('message', 'info', 3000)
        // 继续执行
        resolve()
    })
}